package top.stmo.pojo;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;

//@Component
//@ConfigurationProperties(prefix = "ent")            //读取配置类中的属性
public class User {

    private String name;

    private Integer age;

    private Long tel;

    private String[] sub;

    public User() {
    }

    public User(String name, Integer age, Long tel, String[] sub) {
        this.name = name;
        this.age = age;
        this.tel = tel;
        this.sub = sub;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Long getTel() {
        return tel;
    }

    public void setTel(Long tel) {
        this.tel = tel;
    }

    public String[] getSub() {
        return sub;
    }

    public void setSub(String[] sub) {
        this.sub = sub;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", tel=" + tel +
                ", sub=" + Arrays.toString(sub) +
                '}';
    }
}
